# Copyright 2012 Nokia Corporation.

QT += core gui webkit declarative network

CONFIG += qt-components

TARGET = WhereAmI
TEMPLATE = app
VERSION = 1.0

HEADERS += \
    src/qdeclarativewebview_p.h \
    src/geopermissionhandler.h

SOURCES += \
    src/main.cpp \
    src/qdeclarativewebview.cpp \
    src/geopermissionhandler.cpp

RESOURCES += rsc/common.qrc

OTHER_FILES += \
    images/* \
    html/* \
    html/css/* \
    html/images/* \
    html/js/*

symbian {
    TARGET.UID3 = 0xE7516D40
    TARGET.EPOCHEAPSIZE = 0x020000 0x6000000

    TARGET.CAPABILITY += \
        NetworkServices \
        Location

    RESOURCES += rsc/symbian.qrc

    OTHER_FILES += \
        qml/symbian/main.qml \
        qml/symbian/MainPage.qml

    ICON = icons/whereami.svg
}

contains(MEEGO_EDITION,harmattan) {
    TARGET = whereami

    RESOURCES += rsc/harmattan.qrc

    OTHER_FILES += + \
        qml/harmattan/main.qml \
        qml/harmattan/MainPage.qml \
        qtc_packaging/debian_harmattan/rules \
        qtc_packaging/debian_harmattan/README \
        qtc_packaging/debian_harmattan/manifest.aegis \
        qtc_packaging/debian_harmattan/copyright \
        qtc_packaging/debian_harmattan/control \
        qtc_packaging/debian_harmattan/compat \
        qtc_packaging/debian_harmattan/changelog

    target.path = /opt/whereami/bin
    desktopfile.files = whereami.desktop
    desktopfile.path = /usr/share/applications
    icon.files = icons/whereami80.png
    icon.path = /usr/share/icons/hicolor/80x80/apps

    INSTALLS += target desktopfile icon
}

simulator {
    RESOURCES += rsc/symbian.qrc

    OTHER_FILES += \
        qml/symbian/main.qml \
        qml/symbian/MainPage.qml
}
